import ajax from "@/utils/request";
import '../mock/data/wzhMock'
// 获取用户信息
export function getUserDataFn(data){
    return ajax({
        url:'/api/getUserData',
        method:'post',
        data
    })
}

// 修改用户头像
export function setAvatarDataFn(data){
    return ajax({
        url:'/api/setAvatarData',
        method:'post',
        data
    })
}

// 获取全部订单
export function getOrderListDataFn(data){
    return ajax({
        url:'/api/getOrderListData',
        method:'post',
        data
    })
}
// 获取单一订单
export function getOrderDataFn(data){
    return ajax({
        url:'/api/getOrderData',
        method:'post',
        data
    })
}
// 修改状态
export function changeOrderStateFn(data){
    return ajax({
        url:'/api/changeStateData',
        method:'post',
        data
    })
}